﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLSingTowerMall;
using DTOSingTowerMall;

namespace FacadeSingTowerMall
{
    public class BlockFacade
    {
         BlockProcess bp;
        //public Block bl;

        public BlockFacade(){
            bp = new BlockProcess();
         }

        public IQueryable<ICategory> getCategories()
        {
            return bp.getCategories();
        }

        public string AddBlock(int BlockID, string Type, string BlockLocation, string Dimension )
        {
            return bp.AddBlock(BlockID,Type,BlockLocation,Dimension);
        }

        public ILevel getLevelByID(int levelid)
        {
            return bp.getLevelByID(levelid);
        }

        public string ModifyImage(int levelid, string mapImageurl)
        {
            return bp.ModifyImage(levelid, mapImageurl);
        }

        public IQueryable<IBlock> getBlocksByLevel(int lvl)
        {
            return bp.getBlocksByLevel(lvl);
        }

        public IQueryable<ILevel> getLevels()
        {
            return bp.getLevels();
        }

        public IBlock getBlockByID(int p)
        {
            return bp.getBlockByID(p);
        }

        public ICategory getCategoryByID(int p)
        {
            return bp.GetCategoryByID(p);
        }
    }
}
